package com.xiyu.service.errorCode.material;

import com.xiyu.service.framework.exception.ErrorCode;

/**
* stockIn 错误码枚举类
*
* stockIn 入库管理，使用 1009004000段
*/
public interface StockInErrorCode {
    Integer ERROR_CODE_START_CODE = 1009004000;

    ErrorCode MATERIAL_STOCK_IN_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE, "入库单不存在");
    ErrorCode MATERIAL_STOCK_IN_DETAIL_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 1, "入库单明细不存在");
    ErrorCode MATERIAL_STOCK_IN_NOT_PENDING_REVIEW = new ErrorCode(ERROR_CODE_START_CODE + 2, "入库单明细状态不是待审核");
    ErrorCode MATERIAL_STOCK_IN_MUST_CHOOSE_SOURCE = new ErrorCode(ERROR_CODE_START_CODE + 3, "不是未知的来源类型必须选择来源单据");
    ErrorCode MATERIAL_STOCK_IN_DETAIL_NOT_EMPTY = new ErrorCode(ERROR_CODE_START_CODE + 4, "入库单明细至少有一条");
    ErrorCode MATERIAL_STOCK_IN_TRANSFER_ID_NOT_EXISTS = new ErrorCode(ERROR_CODE_START_CODE + 5, "入库单对应的调拨单ID不存在");
    ErrorCode MATERIAL_STOCK_IN_TRANSFER_NOT_EXISTS = new ErrorCode(ERROR_CODE_START_CODE + 6, "入库单对应的调拨单不存在");
    ErrorCode MATERIAL_STOCK_IN_PURCHASE_ID_NOT_EXISTS = new ErrorCode(ERROR_CODE_START_CODE + 7, "入库单对应的采购单ID不存在");
    ErrorCode MATERIAL_STOCK_IN_PURCHASE_NOT_EXISTS = new ErrorCode(ERROR_CODE_START_CODE + 8, "入库单对应的采购单不存在");
}